//
//  JHUserPresenter.h
//  Demo_Pods
//
//  Created by gjh on 2021/3/8.
//  Copyright © 2021 gjh. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface JHUserViewData : NSObject

@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *age;


- (instancetype)initWithName:(NSString *)name age:(NSString *)age;
@end

@protocol JHUserViewDelegate <NSObject>

- (void)startLoading;

- (void)finishLoading;

// 用户界面的数据
- (void)setUser:(NSArray<JHUserViewData *> *)userViewData;

- (void)setEmptyUsers;

@end

@interface JHUserPresenter : NSObject

@property (nonatomic, weak) id<JHUserViewDelegate> userViewDelegate;

- (void)getUsers;

@end

NS_ASSUME_NONNULL_END
